import request from '@/utils/request'

// 查询邮件发送记录列表
export function listSendEmail(query) {
  return request({
    url: '/business/sendEmail/list',
    method: 'get',
    params: query
  })
}

// 查询邮件发送记录详细
export function getSendEmail(id) {
  return request({
    url: '/business/sendEmail/' + id,
    method: 'get'
  })
}

// 新增邮件发送记录
export function addSendEmail(data) {
  return request({
    url: '/business/sendEmail',
    method: 'post',
    data: data
  })
}

// 修改邮件发送记录
export function updateSendEmail(data) {
  return request({
    url: '/business/sendEmail',
    method: 'put',
    data: data
  })
}

// 删除邮件发送记录
export function delSendEmail(id) {
  return request({
    url: '/business/sendEmail/' + id,
    method: 'delete'
  })
}

export function operate(query) {
  return request({
    url: '/business/sendEmail/operate',
    method: 'post',
    params: query
  })
}